# 基础镜像
FROM openjdk:8
# author
LABEL maintainer="forward"
ENV TZ=Asia/Shanghai

# 挂载目录
VOLUME /opt/ruoyi
# 创建目录
RUN mkdir -p /opt/ruoyi
# 指定路径
WORKDIR /opt/ruoyi
# 复制jar文件到路径
COPY jar/ruoyi*.jar /opt/ruoyi/ruoyi.jar
# 启动系统服务
ENTRYPOINT ["java","-jar","ruoyi.jar"]